package com.example.demo.scheduled;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author Administrator
 */
@Data
@Component
@ConfigurationProperties(ScheduledConfiguration.PREFIX)
@Slf4j
public class ScheduledConfiguration {

    public static final String PREFIX = "scheduled-configuration";

    private boolean enable;
    private String something;
    private String cron;

}
